<?php
/**
 * /depot/library/mvc-helper/ViewHelper/Sqldebug.php
 * @author qqinxl
 * 2008/03/25
 * 
 * @category  
 * @package  
 * @copyright  Copyright (c) {}
 */
class ViewHelper_Sqldebug extends ViewHelper_Abstract {
		
	public function sqldebug(){
		$config = Zend_Registry::get('config');
		$profiler = Config_Xml::isTrue($config->db->profiler);
		if($profiler){
			return $this->view->render('basic/sql.debug.phtml');
		}
		return '';
	}	
}